package ATM.pojo;

import java.io.Serializable;

public class UserDO implements Serializable {
    private String userName;
    private String userPassWord;
    private int money;
    private  int id;

    public UserDO() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public UserDO(String userName, String userPassWord, int money, int id) {
        this.userName = userName;
        this.userPassWord = userPassWord;
        this.money = money;
        this.id = id;
    }

    public UserDO(String userName, String userPassWord, int money) {
        this.userName = userName;
        this.userPassWord = userPassWord;
        this.money = money;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassWord() {
        return userPassWord;
    }

    public void setUserPassWord(String userPassWord) {
        this.userPassWord = userPassWord;
    }

    public int getMoney() {
        return money;
    }

    @Override
    public String toString() {
        return "UserDO{" +
                "userName='" + userName + '\'' +
                ", userPassWord='" + userPassWord + '\'' +
                ", money=" + money +
                ", id=" + id +
                '}';
    }

    public void setMoney(int money) {
        this.money = money;

    }
}
